<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>菜单栏列表</title>
    <#include "/view/admin/headList.html"/>

    <script type="text/javascript">

    </script>
</head>
<body>


<div class="table-class">



    <table class="table table-hover table-list table-bordered">
        <thead>
        <tr>
            <td class="table-head-btn" colspan="9">
                <div style="text-align:left;margin-left: 50px;">
                    <a href="${base}/xymenu/add.do?parentId=${entity.parentId!}" class="btn btn-primary">新增</a>
                </div>
            </td>
        </tr>

        <tr  class="table-head" >
            <th>序号</th>
                <th class="label-hidden">菜单ID</th>
                <th>菜单名称</th>
                <th>菜单标识</th>
                <th>链接</th>
                <th>上级菜单</th>
                <th>排序</th>
                <th>显示或隐藏</th>
                <!--<th>有下一级菜单</th>-->
                <th>菜单或按钮</th>

            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>
                        <td class="label-hidden">${c.menuId!}</td>
                <td>
                    <#if c.ifMenu??&&1==c.ifMenu>
                            <a href="${base}/xymenu/list.do?parentId=${c.menuId!}">${c.name!}</a>
                        <#else>${c.name!}
                    </#if>

                  </td>

                            <td>${c.nameEn!}</td>

                            <td>${c.url!}</td>

                        <td>
                            <#if c.parentId??>
                                    <#list listParentId as lv>
                                        <#if lv.value??&&c.parentId == lv.value >
                                        ${lv.name!}
                                        </#if>
                                    </#list>

                            </#if>
                        </td>
                            <td>${c.orderBy!}</td>

                    <td>
                            <#if c.status??>

                         <#if 1==c.status><span class="label label-success">显示</span></#if>

                         <#if 0==c.status><span class="label label-default">隐藏</span></#if>
                            </#if>


                    </td>
                <#--    <td>

                            <#if c.hasMenu??>

                         <#if 1==c.hasMenu><span class="label label-success">有</span></#if>

                         <#if 0==c.hasMenu><span class="label label-default">没有</span></#if>
                            </#if>

                    </td>-->
                    <td>


                            <#if c.ifMenu??>

                         <#if 1==c.ifMenu><span class="label label-success">菜单</span></#if>

                         <#if 0==c.ifMenu><span class="label label-default">按钮</span></#if>
                            </#if>
                    </td>

                <td>
                    <!--<a href="${base}/xymenu/detail.do?menuId=${c.menuId!}" >详情</a>|-->
                   <@shiro.hasPermission name="2.3.1"> 
                    <a href="${base}/xymenu/add.do?menuId=${c.menuId!}" class="btn btn-primary" >修改</a>
                    </@shiro.hasPermission> 
                   <@shiro.hasPermission name="2.3.2">                    
                    <a href="javascript:checkDelete('${base}/xymenu/delete.do?menuId=${c.menuId!}')"  class="btn btn-primary" >删除</a>
                  </@shiro.hasPermission> 
                </td>
            </tr>


        </#list>






        </tbody>
    </table>


</div>
<script>

    function queryCondition(){
       return "code=";
    }

</script>

</body>
</html>
